package com.example.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.bean.UserPO;
import com.example.bean.SearchCodePO;
import com.example.dto.SaveSqlSettingDTO;

import java.util.List;
import java.util.Map;

public interface DataService {


    List<SearchCodePO> getMysqlData();

    //two数据查询
    List<UserPO> getStarRocksData();

    Boolean saveSqlSetting(SaveSqlSettingDTO saveSqlSettingDTO);

    Boolean removeCatch(List<String> sqlCodeList);


    String selectSql(String sqlCode);


    String selectSqlAndSource(String sqlCode);

    SearchCodePO selectSqlByCode(String sqlCode);


    Page<Map<String, Object>> searchData(Page page, Object param);

}
